home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Source Code / Visual Basic Source Code.iso / vbsource / ant12 / referenc.ht_ / referenc.ht
Text File  |  1998-02-08  |  6KB  |  177 lines

  1. <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
  2. <html>
  3.  
  4. <head>
  5. <meta http-equiv="Content-Type"
  6. content="text/html; charset=iso-8859-1">
  7. <meta name="Description"
  8. content="Antanna ocx Control Documentation">
  9. <meta name="KeyWords"
  10. content="Antanna, Control, Documentation, Visual Basic, OCX">
  11. <meta name="GENERATOR" content="Microsoft FrontPage 2.0">
  12. <title>Function Reference</title>
  13. </head>
  14.  
  15. <body bgcolor="#FFFFFF" text="#000000" link="#0000EE"
  16. vlink="#551A8B" alink="#FF0000">
  17.  
  18. <p>[<a href="index.htm">Antenna Documentation</a>]</p>
  19.  
  20. <hr>
  21.  
  22. <h2><a name="Function">Documentation</a></h2>
  23.  
  24. <blockquote>
  25.     <p>This section describes important methods and event of
  26.     Antenna.</p>
  27.     <ol>
  28.         <li><a href="#SetTargetWnd">SetTargetWnd</a></li>
  29.         <li><a href="#AddMsg">AddMsg</a></li>
  30.         <li><a href="#AddPreMsg">AddPreMsg</a></li>
  31.         <li><a href="#AddPostMsg">AddPostMsg</a></li>
  32.         <li><a href="#DestroyAll">DestroyAll</a></li>
  33.         <li><a href="#OnTrap">OnTrap</a> (Event)</li>
  34.     </ol>
  35.     <p> </p>
  36. </blockquote>
  37.  
  38. <blockquote>
  39.     <h3><a name="SetTargetWnd">SetTargetWnd</a></h3>
  40.     <blockquote>
  41.         <table border="0" cellpadding="2" width="80%">
  42.             <tr>
  43.                 <td valign="top" width="20%">Syntax:</td>
  44.                 <td valign="top" width="80%">Sub
  45.                 SetTargetWnd(hWnd As Long)</td>
  46.             </tr>
  47.             <tr>
  48.                 <td valign="top" width="20%">Action:</td>
  49.                 <td valign="top" width="80%">Sets the Target hWnd
  50.                 of the control.</td>
  51.             </tr>
  52.             <tr>
  53.                 <td valign="top" width="20%">Parameter:</td>
  54.                 <td valign="top" width="80%">hWnd is a 32-bit
  55.                 window handle.</td>
  56.             </tr>
  57.         </table>
  58.         <p><font size="2"></font> </p>
  59.     </blockquote>
  60.     <h3><a name="AddMsg">AddMsg</a></h3>
  61.     <blockquote>
  62.         <table border="0" cellpadding="2" width="80%">
  63.             <tr>
  64.                 <td valign="top" width="20%">Syntax:</td>
  65.                 <td valign="top" width="80%">Sub AddMsg(nMsg As
  66.                 Long)</td>
  67.             </tr>
  68.             <tr>
  69.                 <td valign="top" width="20%">Action:</td>
  70.                 <td valign="top" width="80%">This method is
  71.                 equivalent to <a href="#AddPostMsg">AddPostMsg()</a>.</td>
  72.             </tr>
  73.         </table>
  74.         <p><font size="2"></font> </p>
  75.     </blockquote>
  76.     <h3><a name="AddPreMsg">AddPreMsg</a></h3>
  77.     <blockquote>
  78.         <table border="0" cellpadding="2" width="80%">
  79.             <tr>
  80.                 <td valign="top" width="20%">Syntax:</td>
  81.                 <td valign="top" width="80%">Sub AddPreMsg(nMsg
  82.                 As Long, bEat As Boolean)</td>
  83.             </tr>
  84.             <tr>
  85.                 <td valign="top" width="20%">Action:</td>
  86.                 <td valign="top" width="80%">Adds a new message
  87.                 to trap. OnTrap() is called <strong>before</strong>
  88.                 the original function of the Target hWnd is
  89.                 called. If bEat is True, the message will be
  90.                 eaten.</td>
  91.             </tr>
  92.             <tr>
  93.                 <td valign="top" width="20%">Parameter:</td>
  94.                 <td valign="top" width="80%">nMsg is a message
  95.                 you wish to trap.<br>
  96.                 bEat indicates whether the message should be
  97.                 eaten or not.</td>
  98.             </tr>
  99.         </table>
  100.         <p><font size="2"></font> </p>
  101.     </blockquote>
  102.     <h3><a name="AddPostMsg">AddPostMsg</a></h3>
  103.     <blockquote>
  104.         <table border="0" cellpadding="2" width="80%">
  105.             <tr>
  106.                 <td valign="top" width="20%">Syntax:</td>
  107.                 <td valign="top" width="80%">Sub AddPostMsg(nMsg
  108.                 As Long)</td>
  109.             </tr>
  110.             <tr>
  111.                 <td valign="top" width="20%">Action:</td>
  112.                 <td valign="top" width="80%">Adds a new message
  113.                 to trap. OnTrap() is called <strong>after</strong>
  114.                 the original function of the Target hWnd is
  115.                 processed.</td>
  116.             </tr>
  117.             <tr>
  118.                 <td valign="top" width="20%">Parameter:</td>
  119.                 <td valign="top" width="80%">nMsg is a message
  120.                 you are interested in to respond.</td>
  121.             </tr>
  122.         </table>
  123.         <p><font size="2"></font> </p>
  124.     </blockquote>
  125.     <h3><a name="DestroyAll">DestroyAll</a></h3>
  126.     <blockquote>
  127.         <table border="0" cellpadding="2" width="80%">
  128.             <tr>
  129.                 <td valign="top" width="20%">Syntax:</td>
  130.                 <td valign="top" width="80%">Sub DestroyAll()</td>
  131.             </tr>
  132.             <tr>
  133.                 <td valign="top" width="20%">Action:</td>
  134.                 <td valign="top" width="80%">Destroys Antenna
  135.                 properly. This function must be used only in
  136.                 Visual Basic's Run mode.</td>
  137.             </tr>
  138.         </table>
  139.         <p><font size="2"></font> </p>
  140.     </blockquote>
  141.     <h3><a name="OnTrap">OnTrap</a> (Event)</h3>
  142.     <blockquote>
  143.         <table border="0" cellpadding="2" width="80%">
  144.             <tr>
  145.                 <td valign="top" width="20%">Syntax:</td>
  146.                 <td valign="top" width="80%">Sub OnTrap(hWnd As
  147.                 Long, nMsg As Long, wParam As Long, lParam As
  148.                 Long)</td>
  149.             </tr>
  150.             <tr>
  151.                 <td valign="top" width="20%">Action:</td>
  152.                 <td valign="top" width="80%">This event is fired
  153.                 when Antenna trapped one of the messages.</td>
  154.             </tr>
  155.             <tr>
  156.                 <td valign="top" width="20%">Parameter:</td>
  157.                 <td valign="top" width="80%">hWnd is a Window
  158.                 handle.<br>
  159.                 nMsg is the trapped message.<br>
  160.                 wParam is WPARAM of the message.<br>
  161.                 lParam is LPARAM of the message.</td>
  162.             </tr>
  163.         </table>
  164.         <p> </p>
  165.     </blockquote>
  166. </blockquote>
  167.  
  168. <hr>
  169.  
  170. <p align="center">If you have any comments or questions, please
  171. contact <a href="mailto:integer@pair.com">integer@pair.com</a>.</p>
  172.  
  173. <p align="center">Copyright ⌐ 1998 <a
  174. href="http://www.integer.pair.com/">Integer</a> </p>
  175. </body>
  176. </html>
  177.